package com.md.api.controller;

import com.md.api.annotation.NoRepeatSubmit;
import com.md.api.entity.HttpResult;
import com.md.api.entity.VipProperties;
import com.md.api.service.VipCenterSevice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Slf4j
@RequestMapping("/vip")
@RestController
public class VipCenterController {




	@Resource
	VipCenterSevice vipSevice;



	@RequestMapping("/list")
	@ResponseBody
	public HttpResult list() {
		return vipSevice.list();
	}

//	@NoRepeatSubmit
//	@RequestMapping("/buy")
//	@ResponseBody
//	public HttpResult buy(HttpServletRequest request, @RequestBody VipProperties vipProperties) {
//		return vipSevice.buy(request,vipProperties);
//
//	}
}
